package de.tabiteuea.dbAccess;

/**
 * Cooccurrence object
 * Represents a cooccurrence
 * @author Erik Schreiber
 */
public class CooccurrenceObject {

	private int id;
	private int analysis_id;
	private String word1;
	private String word2;
	private float significance;

	/**
	 * Constructor without params
	 */

	public CooccurrenceObject() {

	}

	/**
	 * Constructor, with params
	 * @param analysis_id forgein key for table analysis
	 * @param newWord1 value for word1
	 * @param newWord2 value for word2
	 * @param newSignificance value for significance
	 */
	public CooccurrenceObject(int analysis_id, String word1,
			String word2, float significance) {

		this.analysis_id = analysis_id;
		this.word1 = word1;
		this.word2 = word2;
		this.significance = significance;
	}
	
	/**
	 * Getter for id
	 * @return id of the cooccurrence in the database
	 */
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setAnalysis_id(int newAnalysis_id) {

		this.analysis_id = newAnalysis_id;
	}

	public void setWord1(String word) {
		this.word1 = word;
	}

	public void setWord2(String word) {
		this.word2 = word;
	}

	public void setSignificance(float significance) {
		this.significance = significance;
	}

	public int getAnalysis_id() {
		return this.analysis_id;
	}

	public String getWord1() {
		return this.word1;
	}

	public String getWord2() {
		return this.word2;
	}

	public float getSignificance() {
		return this.significance;
	}
}